<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <link rel="icon" href="/img/favicon.ico" mce_href="/img/favicon.ico" type="image/x-icon">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/css/iconfont.css">
    <link rel="stylesheet" type="text/css" href="/css/common.css">
    <title>首页-<%= title %></title>
  </head>
  <body>
    <div class="cs_header header_fixed">
      <div class="h_btn_left" >
        <%= title %>
      </div>
      <div class="h_btn_right" onclick="javascript:location.href='add'">
        +新建
      </div>
    </div>
    <div class="cs_content">
      <ul class="note_list">
          <%for (var i = 0; i < data.datas.length; i++) {%>
            <li onclick="javascript:location.href='note/<%= data.datas[i]['id'] %>'">
            <p class="list_title"><%= data.datas[i]['title'] %></p>
            <p class="descs"></p>
            <p class="cs_contents" style="display:none"><%= data.datas[i]['descs'] %></p>
            <p><%= util.num2time(data.datas[i]['uptime']) %></p>
            </li>
          <%}%>
          <%if(data.datas.length==0){%>

              <p class="no_data"><%= data.msg %></p>

          <%}%>
        <!-- <li onclick="javascript:location.href='note/2'">
          <p class="list_title">标题类型的内容</p>
          <p>小字的内容部分</p>
          <p>2017-10-13:25</p>
        </li> -->
      </ul>
    </div>

    <div class="footer_fixed">
      <div class="footer_item part_3">
        <i class="icon-home"></i>
      </div>
      <div class="footer_item part_3" onclick="show_addtxt()">
        <a href="/about"><i class="icon-about"></i></a>
      </div>
      <div class="footer_item part_3">
        <a href="/me"><i class="icon-user"></i></a>
      </div>
    </div>
    <script src="/js/zepto.js" charset="utf-8"></script>
    <script src="/js/function.js" charset="utf-8"></script>
    <script type="text/javascript">
      window.console && window.console.log && console.log("%c哟，骚年,又来扒代码啦~！", "color:red");
      $(function(){
        for (var i = 0; i < $('.descs').length; i++) {
          var html =removegtb( removeHtmlTab(  htmlDecode($('.cs_contents').eq(i).text())));
          $('.descs').eq(i).html(html);
          console.log(i);
        }
      })
    </script>
  </body>
</html>
